package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;

/**
 * 班级实体类
 */
@TableName("t_class")
public class ClassBean {
    //班级id
    @TableId(value ="pk_classId",type = IdType.AUTO)
    private Integer id;
    //班级名称
    @TableField("t_className")
    private String className;
    //班级老师
    @TableField("t_classTeacher")
    private String teacher;
    //开班时间
    @TableField("t_classDate")
    private LocalDate classDate ;

    public ClassBean (){}

    public ClassBean(String className, String teacher, LocalDate classDate) {
        this.className = className;
        this.teacher = teacher;
        this.classDate = classDate;
    }

    public ClassBean(String className, String teacher ) {
        this.className = className;
        this.teacher = teacher;

    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    public LocalDate getClassDate() {
        return classDate;
    }

    public void setClassDate(LocalDate classDate) {
        this.classDate = classDate;
    }

    @Override
    public String toString() {
        return "ClassBean{" +
                "id=" + id +
                ", className='" + className + '\'' +
                ", teacher='" + teacher + '\'' +
                ", classDate=" + classDate +
                "}\n";
    }
}
